package com.hodge.core.exception;

import com.hodge.core.result.Result;

/**
 * 通用异常
 *
 * @author haojun
 * @since 2020/3/18 20:45
 */
public class MyException extends RuntimeException {
    private final Result result;

    public MyException(Result result) {
        super(result.getMessage());
        this.result = result;
    }

    public Result getResult() {
        return result;
    }
}
